#ifndef __ATT7053CAL1_H__
#define __ATT7053CAL1_H__

#include "stm8l15x_it.h"
#include "PubSet.h"
#include "IOSet.h"
#include "extern1.h"
//------------------------------------------------------------------------


//#define	CmdLth	(*(u16 *)ComData)
//#define	Code645	(*(u16 *)(ComData+2))
//#define	Data645	((u8 *)(ComData+4))

u8 ReceiveSpi7053(void);

u8 Read_7053(u8* Base1, u8 no);

void DoSinglePhase_7053(void);

u8 findReg7053(u8 addr);

u8 Init_7053(void);

u8 up7053ToEEP(void);

u8 Write_7053(u8* Base2, u8 no);

u8 start7053(void);

u8  sendSpi7053(u8 a);

u8 rst7053(void);

u8 recv7053(void);

u8 setErr(u8 a);
u8 setln0(void);
void spiCs_0(void);

#endif